﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ChangeTheme.aspx.cs" Inherits="FrontEnd_Dialog_ChangeTheme" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript">
        function initDialog() {
            $("#theme-list").selectable();
        };

        function saveChange() {
            var theme;
            var path = '<%=ResolveUrl(Util.ServerPath.CSS) + "Theme/"%>';
            // Get selected value.
            $(".ui-selected").each(function() {
                theme = $(this).children(".value").html();
            });
            
            // The ajax function to save information here.n

            // Save value.
            if (theme != "Custom") {
                $("#theme").attr("href", path + theme + ".css");
            }
        };
    </script>
</head>
<body>

<ul id="theme-list" class="selectable">
    <li class="img-item">
        <div class="info">
            <img class="img-theme" src="<%=ResolveUrl(Util.ServerPath.CSS + "Images/Theme/Default.png")%>" /><br />
            Chuẩn
        </div>
        <div class="value">Default</div>
    </li>
    <li class="img-item">
        <div class="info">
            <img class="img-theme" src="<%=ResolveUrl(Util.ServerPath.CSS + "Images/Theme/Red.png")%>" /><br />
            Đỏ
        </div>
        <div class="value">Red</div>
    </li>
    <li class="img-item">
        <div class="info">
            <img class="img-theme" src="<%=ResolveUrl(Util.ServerPath.CSS + "Images/Theme/Green.png")%>" /><br />
            Xanh Lá Cây
        </div>
        <div class="value">Green</div>
    </li>
    <li class="img-item">
        <div class="info">
            <img class="img-theme" src="<%=ResolveUrl(Util.ServerPath.CSS + "Images/Theme/Blue.png")%>" /><br />
            Xanh Da Trời
        </div>
        <div class="value">Blue</div>
    </li>
    <li class="img-item">
        <div class="info">
            <img class="img-theme" src="<%=ResolveUrl(Util.ServerPath.CSS + "Images/Theme/Orange.png")%>" /><br />
            Da Cam
        </div>
        <div class="value">Orange</div>
    </li>
    <li class="img-item">
        <div class="info">
            <img class="img-theme" src="<%=ResolveUrl(Util.ServerPath.CSS + "Images/Theme/Custom.png")%>" /><br />
            Tùy Chọn
        </div>
        <div class="value">Custom</div>
    </li>
</ul>    

</body>
</html>
